package cn.yaoud.salus.oms.alarm.autoconfigure;

import cn.yaoud.salus.oms.alarm.exception.ExpectedBusinessException;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.Set;

/**
 * @author 唐彪
 */
@RefreshScope
@ConfigurationProperties(prefix = "oms-alarm")
@Data
public class OmsAlarmProperties {
    /**
     * 忽略的异常类型全限定类名
     */
    private Set<String> ignoreExceptions;

    /**
     * 是否忽略告警ExpectedBusinessException。true不告警，false告警。默认不告警
     *
     * @see ExpectedBusinessException
     */
    private Boolean ignoreExpectedBusinessException = Boolean.TRUE;
}
